/**
Ccommands: Class holding character specific commands.
**/
#pragma once

#ifndef _CCOMM_H_
#define _CCOMM_H_

#include "mainloop.h"

class CComm {
private:
	// the type of the command
	int command;
	// charid of the char that triggered the command
	
public:
	int flags, extra;
	int ident;
	int charid;
	unsigned char lenght;
	char emote[24];
	LPVOID * ptr;
	LPVOID * ptr2;

	char message[255];

	// char that triggered the command
	unsigned char fromc[100];
	union PacketData pData;

	CComm::CComm();

	void CComm::setComType(int type);

	int  CComm::getComType();
};

#endif